<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <hdjs/>
    <bootstrap/>
    <css file="__CONTROLLER_VIEW__/css/css.css"/>
</head>
<body>
<div class="wrap">
    <div class="title-header">修改分类</div>
    <form action="" method="post" class="form-inline hd-form">
        <table class="table1">
            <tr>
                <th class="w100">分类名称</th>
                <td  class="w100">
                    <input type="text" name="cname" class="w200" value="{$oldData.cname}"/> 
                </td>
                <td>分类名称长度 1 到 20 位</td>
            </tr>
            <tr>
                <th class="w100">所属分类</th>
                <td>
                    <select name="pid">                 
                    <option value="0">顶级分类</option>
                    <foreach from="$cateData" value="$v">
                       <option value="$v.cid" <if value="$oldData['pid'] eq $v['cid']">selected="selected"</if>>{$v.cname}</option>
                    </foreach>
                    </select>
                </td>
                <td></td>
            </tr>

            <tr>
                <th class="w100">分类关键字</th>
                <td>
                    <textarea name="keyword" id="" class="form-control" rows="5">{$oldData.keyword}</textarea>
                </td>
                <td>分类关键字长度 1 到 255位</td>
            </tr>

            <tr>
                <th class="w100">分类排序</th>
                <td>
                    <input type="text" name="order" class="w200" value="{$oldData.order}"/>
                </td>
                <td>请填写1到65535的排序数字 </td>
            </tr>
           
             <tr>
                <th class="w100">是否显示</th>
                <td>
                    是：<input type="radio" name="is_show" id="" value="1" <if value="$oldData['is_show'] eq 1">checked="checked"</if>/>
                    &nbsp;
                    否: <input type="radio" name="is_show" id=""  value="0" <if value="$oldData['is_show'] eq 0">checked="checked"</if>/>
                </td>
                <td></td>
            </tr>       
        </table>
        <div class="position-bottom">
            <input type="hidden" value="{$hd.get.cid}" name="cid"/>
            <input type="submit" class="hd-success" value="修改"/>
            <input type="button" class="hd-success" value="返回"/>
        </div>
    </form>
</div>
</body>
</html>